<!DOCTYPE html>
<html>
  <head>
    {include file="/public/baseheader" /}
  </head>

   <body>
    {include file="public/header" /}     

    <main class="main bjhs">
        {include file="public/banner" /}
      <div class="ny-body wd">
        <div class="mbx">
                 {include file="public/position" /}  
        </div>
        <div class="ny-typename">
          <h2>联系我们</h2>
        </div>
        <div class="lxwm-1">
            <div class="lxwm-1-left">
                 <div class="lxwm-list">
                    <div class="lxwm-1-item">
                        <img src="{$global.tik_url}" alt="">
                        <h5 class="t10">
                            抖音二维码
                            <h5>
                    </div>
                    <div class="lxwm-1-item">
                        <img src="{$global.red_url}" alt="">
                        <h5 class="t10">小红书二维码</h5>
                    </div>
                    <div class="lxwm-1-item">
                        <img src="{$global.ks_url}" alt="">
                        <h5 class="t10">快手二维码</h5>
                    </div>
                    <div class="lxwm-1-item">
                        <img src="{$global.offi_url}" alt="">
                        <h5 class="t10">微信公众号二维码</h5>
                    </div>
                 </div>
            </div>
            <div class="lxwm-1-right">
                <h3>
                    服务热线
                </h3>
                <div class="txt">
                    <h4>招商热线：{$global.cfg_tele_zs}</h4>
                    <h4>销售热线：{$global.cfg_tele_xx}</h4>
                    <h4>海外热线：{$global.cfg_tele_hw}</h4>
                </div>
            </div>
        </div>
        <div class="lxwm-2">
            <div class="lxwm-2-left">
<div id="allmap"></div>
            </div>
            <div class="lxwm-2-right">
                <div class="txt">
                    <h4>广东百山家居有限公司</h4>
                    <h5 class="en">
                        Guangdong PA Furniture Co.,Ltd
                    </h5>
                    <div class="txt-1">
                        <h6>
                            招商热线：{$global.cfg_tele_zs}
                        </h6>
                        <h6>销售热线：{$global.cfg_tele_xx}</h6>
                        <h6>海外热线：{$global.cfg_tele_hw}</h6>
                        <h6>官方网址：www.pa0086.com</h6>
                        <h6>营销中心：{$global.address}</h6>
                        <h6>肇庆基地：肇庆市端州区双龙南路23号</h6>
                        <h6>
                            印尼基地：JL.Pembangunan 1No.5 Batusari,Batu Ceper Kota, 
坦格朗市,万丹省,15121,印度尼西亚
                        </h6>
                    </div>
                </div>
            </div>
        </div>
     
      </div>
    </main>

    <script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0&ak=5fRUbGCLuEa5MyCyDhWZOsgq6ySAymoN"></script>
    <script type="text/javascript">
    // 百度地图API功能
    var map = new BMap.Map("allmap", { minZoom: 12, maxZoom: 20 }); // 创建Map实例,设置地图允许的最小/大级别
    var point = new BMap.Point(113.104745,23.009103);
    map.centerAndZoom(point, 20);
    var marker = new BMap.Marker(point); // 创建标注
    //map.addOverlay(marker);              一个点
    var sContent =
    `<h4 style='margin:0 0 5px 0; font-size:18px; padding:0.2em 0'>广东百山家居有限公司</h4>
    <div style="width:250px;">
            <img  src="/basic/images/i-3-bj.jpg" alt="">
        </div>
    `;
    var myIcon = new BMap.Icon("/basic/images/map-tb.png", new BMap.Size(19,26));


    var marker = new BMap.Marker(point,{icon:myIcon,infoWindow:point});// 创建标注
    map.addOverlay(marker);  // 将标注添加到地图中
 var infoWindow = new BMap.InfoWindow(sContent); 
    marker.addEventListener("click", function(){          
       this.openInfoWindow(infoWindow);
       //图片加载完毕重绘infowindow
       document.getElementById('imgDemo').onload = function (){
           infoWindow.redraw();   //防止在网速较慢，图片未加载时，生成的信息框高度比图片的总高度小，导致图片部分被隐藏
       }
    }); 
    // 将标注添加到地图中
    map.enableScrollWheelZoom(true); //是否允许缩放
    </script>

{include file="public/footer" /}
</body>
</html>
